package com.gpio;

import java.util.ResourceBundle;

/**
 * config.properties 配置文件解析
 * 
 * @author yangx
 * @className
 * @version 1.0
 * @date 2016年7月8日上午10:44:53
 */
public class Config {
	
	public static String MQ_USERNAME = null;
	public static String MQ_PASSWORD = null;
	public static String MQ_URL = null;
	public static String MQ_TOPIC = null;
	
	static {
        ResourceBundle resource = ResourceBundle.getBundle("config");
        Config.MQ_USERNAME = resource.getString("mq_username");
        Config.MQ_PASSWORD = resource.getString("mq_password");
        Config.MQ_URL = resource.getString("mq_url");
        Config.MQ_TOPIC = resource.getString("mq_topic");
    }
}